﻿def Start(ToF) :
	if ToF == True :
		import random
		print("马牛逼计算机v1.2.0")
		print("作者：某道")
		print("！！！严禁恶搞！！！")
		x = input("请输入第一个数（仅支持浮点数）：")
		while type(x) != float or int :
			x = input("是不是想恶搞？重新NM输入:)：")
		ys = input("请输入运算方式（仅支持“加”，“减”，“乘”，“除以”，“乘方”，“开方”）：")
		while ys != "加" or "减" or "乘" or "除以" or "乘方" or "开方" :
			ys = input("拒绝恶搞，从我做起:-D，重新输入：")
		y = input("请输入第二个数（仅支持浮点数）：")
		while type(y) != float or int :
			y = input("是不是想恶搞？重新NM输入:)：")
		r1 = random.randint(-10000000000,10000000000)
		r2 = random.randint(-100000,100000)
		r3 = random.randint(1,6)
		while r2 == 0 :
			r2 = random.randint(-100000,100000)
			if r2 != 0 :
				break
			
		
		while ys == "加" :
			z = x + y + r1 / r2
			break
		
		while ys == "减" :
			z = x - y + r1 / r2
			break
		
		while ys == "乘" :
			z = x * y + r1 / r2
			break
		
		while ys == "除以" :
                        z = x / y + r1 / r2
			while y == 0 :
				y = float(input("除数不能为0，请重新输入:)：")
			
                        break
		
		while ys == "乘方" :
                        z = x ** y + r1 / r2
                        break
                
                while ys == "开方" :
                        z = x ** 1 / y + r1 / r2
                        break
                
                while r3 == 1 :
			hd = "你好像有内大并"
			break
		
		while r3 == 2 :
			hd = "你有脑AI吧？我肖恩"
			break
		
		while r3 == 3 :
			hd = "没有马牛逼也照样牛逼"
			break
		
		while r3 == 4 :
			hd = "你脑婆爆料了！"
			break
		
		while r3 == 5 :
			hd = "你被日了！"
			break
		
		while r3 == 6 :
			hd = "拒绝盗版马牛逼计算机，从我做起"
			break
		
		print("结果是",z,"，",hd,sep = '')